<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">用户操作记录</h1>
</div>
<toaster-container toaster-options="{'position-class': 'toast-center', 'close-button':true}"></toaster-container>
<div class="wrapper-md">
  <div class="panel panel-default">
    <div class="panel-heading">
      用户操作记录查询
    </div>
    <div class="panel-body b-b b-light">
      <div class="form-group pull-in clearfix">
        <div class="col-sm-1">
          <label><font><font>用户ID:</font></font></label>
          <input type="text" class="form-control ng-pristine ng-untouched ng-invalid ng-invalid-required" name="" ng-model="requestArrcus.userId"
            required="">
        </div>
        <div class="col-sm-1">
          <label><font><font>订单编号:</font></font></label>
          <input type="text" class="form-control ng-pristine ng-untouched ng-invalid ng-invalid-required" name="" ng-model="requestArrcus.usertransferid "
            required="">
        </div>
        <div class="col-sm-1">
          <label><font><font>汇付订单号:</font></font></label>
          <input type="text" class="form-control ng-pristine ng-untouched ng-invalid ng-invalid-required" name="" ng-model="requestArrcus.objId "
            required="">
        </div>
        <div class="col-sm-1">
          <label><font><font>用户名:</font></font></label>
          <input type="text" class="form-control ng-pristine ng-untouched ng-invalid ng-invalid-required" name="" ng-model="requestArrcus.username"
            required="">
        </div>
        <div class="col-sm-1">
          <label><font><font>手机号:</font></font></label>
          <input type="tel" class="form-control ng-pristine ng-untouched ng-invalid ng-invalid-required" name="" ng-model="requestArrcus.mobile"
            required="">
        </div>
        <div class="col-sm-2" ng-controller="DatepickerDemoCtrl">
          <label><font><font>开始时间:</font></font></label>
          <p class="input-group">
            <input type="text" class="form-control" datepicker-popup="{{format}}" ng-click="open($event)" ng-model="requestArrcus.begintime"
              is-open="opened" datepicker-options="dateOptions" ng-required="true" close-text="Close" />
            <span class="input-group-btn">
	    					<button type="button" class="btn btn-default" ng-click="open($event)"><i class="glyphicon glyphicon-calendar"></i></button>
	    				</span>
          </p>
        </div>
        <div class="col-sm-2" ng-controller="DatepickerDemoCtrl">
          <label><font><font>结束时间:</font></font></label>
          <p class="input-group">
            <input type="text" class="form-control" datepicker-popup="{{format}}" ng-click="open1($event)" ng-model="requestArrcus.endtime"
              is-open="opened1" datepicker-options="dateOptions" ng-required="true" close-text="Close" />
            <span class="input-group-btn">
	    					<button type="button" class="btn btn-default" ng-click="open1($event)"><i class="glyphicon glyphicon-calendar"></i></button>
	    				</span>
          </p>
        </div>
        <div class="col-sm-1">
          <label><font><font>操作类型:</font></font></label>
          <select name="" id="" ng-model="requestArrcus.usertransfertype" class="form-control">
            <option value="">全部</option>
            <option value="1">投标</option>
            <option value="2">充值</option>
            <option value="18">网银充值</option>
            <option value="3">提现</option>
            <option value="19">快速提现</option>
            <option value="20">活期提现</option>
            <option value="21">奖金</option>
            <option value="4">放款</option>
            <option value="5">回款</option>
            <option value="6">借款人收款</option>
            <option value="7">借款人还款</option>
            <option value="8">转账</option>
            <option value="9">红包</option>
            <option value="10">活期投资</option>
            <option value="11">活期退出</option>
            <option value="12">活期借款人收款</option>
            <option value="13">活期退出借款人扣款</option>
            <option value="14">活期发放收益</option>
            <option value="15">活期借款人扣利息</option>
            <option value="16">复投借款人扣款</option>
            <option value="17">复投借款人收钱</option>
          </select>
        </div>

        <div class="col-sm-1">
          <label><font><font>操作状态:</font></font></label>
          <select name="" id="" class="form-control" ng-model="requestArrcus.usertransferstatus">
            <option value="">全部</option>
            <option value="1">新建</option>
            <option value="2">成功</option>
            <option value="3">失败</option>
            <option value="4">申请成功</option>
          </select>
        </div>
      </div>
      <div class="form-group pull-in clearfix">
        <div class="col-sm-1">
          <button class="btn btn-info btn-addon" ng-if='!graybtn' style="margin-top:25px" ng-click="search()">查询</button>
          <button class="btn btn-light btn-addon" ng-if='graybtn' style="margin-top:25px">查询</button>
        </div>
      </div>
    </div>
    <div class="table-responsive">
      <table id="tab" class="table table-striped m-b-none">
        <thead>
          <tr>
            <th style="min-width: 100px">订单编号</th>
            <th style="min-width: 110px">用户手机号</th>
            <th style="min-width: 100px">用户姓名</th>
            <th style="min-width: 100px">平台订单号</th>
            <th style="min-width: 100px">汇付订单号</th>
            <th style="min-width: 80px">code</th>
            <th style="min-width: 100px">描述</th>
            <th style="min-width: 100px">操作类型</th>
            <th style="min-width: 60px">金额</th>
            <!-- <th style="min-width: 130px">定期子订单编号</th> -->
            <!-- <th style="min-width: 130px">活期子订单编号</th> -->
            <th style="min-width: 100px">创建时间</th>
            <th style="min-width: 60px">状态</th>
            <th style="min-width: 100px">确认时间</th>
            <th style="min-width: 300px">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr ng-if="QueryLoanProductList==''">
            <td colspan="9">当前无任何数据</td>
          </tr>
          <tr ng-if="QueryLoanProductList!=''" ng-repeat="obj in QueryLoanProductList">
            <td ng-bind="obj.Id"></td>
            <th ng-bind="obj.Mobile"></th>
            <th ng-bind="obj.FullName"></th>
            <th ng-bind="obj.ExtendId"></th>
            <th ng-bind="obj.ObjId"></th>
            <th ng-bind="obj.Extendnum"></th>
            <th ng-bind="obj.ExtendValue"></th>
            <td ng-bind="clicktype(obj.UserTransferType)"></td>
            <td ng-bind="getCharge(obj)"></td>
            <!-- <td ng-bind="obj.OrderItemId"></td> -->
            <!-- <td ng-bind="obj.FlOrderItermId"></td> -->
            <td ng-bind="obj.CreateTime|date:'yyyy-MM-dd HH:mm:ss'"></td>
            <td ng-bind="clickstatus(obj)"></td>
            <td ng-bind="obj.FinishTime|date:'yyyy-MM-dd HH:mm:ss'"></td>
            <td>
              <button class="btn m-b-xs btn-sm btn-info" ng-click="queryStatic(obj.ObjId,obj.UserTransferType)" ng-if="(obj.UserTransferType==3 || obj.UserTransferType==19 || obj.UserTransferType==20 || (obj.UserTransferType==1 && obj.UserTransferStatus!=2) || (obj.UserTransferType==2 && obj.UserTransferStatus!=2) || (obj.UserTransferType==18 && obj.UserTransferStatus!=2) || (obj.UserTransferType==10 && obj.UserTransferStatus!=2))&&CompareDate(obj.CreateTime)">查询交易状态</button>
              <button class="btn m-b-xs btn-sm btn-info" ng-click="restoreJxq(obj.ObjId)" ng-if="jxqShow(obj) && obj.UserTransferType==1 && obj.UserTransferStatus==1">查询加息券状态</button>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
  <div class="btn-group pull-right">
    <button type="button" class="btn btn-default" ng-click="prev()"><font><font>上一页</font></font></button>
    <button type="button" class="btn btn-default btnNum">{{requestArrcus.pageIndex}}</button>
    <button type="button" class="btn btn-default" ng-click="next()"><font><font>下一页</font></font></button>
    <span class="btn btn-default">共<span ng-bind="QueryLoanProductListTotal+'条数据'"></span></span>
  </div>
</div>